import { createRouter, createWebHashHistory } from 'vue-router'
import noCheckRoutes from '@/router/noCheckRoutes'
import checkRoutes from '@/router/checkRoutes'
// import customerRoutes from '@/router/customer'
// import backendRoutes from '@/router/backendRoutes'
// import wechatRoutes from '@/router/platform/wechatRoutes'
// import workWechatRoutes from '@/router/platform/workWechatRoutes'
// import douyinRoutes from '@/router/platform/douyinRoutes'
// import freeRoutes from '@/router/platform/freeRoutes'
// import appRoutes from '@/router/platform/appRoutes'
import 'nprogress/nprogress.css' // progress bar style

const router = createRouter({
  history: createWebHashHistory(),
  routes: [...noCheckRoutes, ...checkRoutes]
})

export function resetRouter() {
  router.replace({ path: '/login' })
}

export default router
